home *** CD-ROM | disk | FTP | other *** search
/ William Shakespeare - The Complete Works / William Shakespeare - The Complete Works on CD-ROM.iso / classic / form1a.frm < prev    next >
Text File  |  1994-09-07  |  11KB  |  449 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    BackColor       =   &H00000000&
  4.    Caption         =   "Explore the Library using the mouse."
  5.    ClientHeight    =   5535
  6.    ClientLeft      =   5460
  7.    ClientTop       =   5715
  8.    ClientWidth     =   10425
  9.    ClipControls    =   0   'False
  10.    FillStyle       =   5  'Downward Diagonal
  11.    ForeColor       =   &H0000FFFF&
  12.    Height          =   6285
  13.    Icon            =   FORM1A.FRX:0000
  14.    Left            =   5400
  15.    LinkTopic       =   "Form1"
  16.    Picture         =   FORM1A.FRX:0302
  17.    ScaleHeight     =   369
  18.    ScaleMode       =   3  'Pixel
  19.    ScaleWidth      =   695
  20.    Top             =   5025
  21.    Width           =   10545
  22.    WindowState     =   2  'Maximized
  23.    Begin Menu menu_file 
  24.       Caption         =   "&File"
  25.       Begin Menu menu_load 
  26.          Caption         =   "&Open..."
  27.          Shortcut        =   ^O
  28.       End
  29.       Begin Menu Menu_save 
  30.          Caption         =   "Save &as..."
  31.          Shortcut        =   ^S
  32.       End
  33.       Begin Menu blank 
  34.          Caption         =   "-"
  35.       End
  36.       Begin Menu menu_print 
  37.          Caption         =   "&Print"
  38.          WindowList      =   -1  'True
  39.          Begin Menu menu_print_bookmarks 
  40.             Caption         =   "&Bookmarks..."
  41.          End
  42.          Begin Menu menu_print_Search 
  43.             Caption         =   "&Search list..."
  44.          End
  45.       End
  46.       Begin Menu menu_print_setup 
  47.          Caption         =   "P&rint setup..."
  48.       End
  49.       Begin Menu blank2 
  50.          Caption         =   "-"
  51.       End
  52.       Begin Menu menu_pref 
  53.          Caption         =   "&Preferences..."
  54.       End
  55.       Begin Menu menu_exit 
  56.          Caption         =   "E&xit"
  57.          Shortcut        =   ^Q
  58.       End
  59.    End
  60.    Begin Menu menu_view 
  61.       Caption         =   "V&iew"
  62.       Index           =   0
  63.       Begin Menu menu_book 
  64.          Caption         =   "&Book"
  65.       End
  66.       Begin Menu menu_word 
  67.          Caption         =   "&Wordprocessor"
  68.       End
  69.       Begin Menu menu_paste 
  70.          Caption         =   "&Search list..."
  71.       End
  72.       Begin Menu menu_retracesteps 
  73.          Caption         =   "&Retrace steps..."
  74.       End
  75.    End
  76.    Begin Menu menu_search 
  77.       Caption         =   "&Search"
  78.       Begin Menu menu_title 
  79.          Caption         =   "&Title..."
  80.       End
  81.       Begin Menu menu_simple_search 
  82.          Caption         =   "&Simple..."
  83.       End
  84.       Begin Menu menu_complex_search 
  85.          Caption         =   "&Complex..."
  86.       End
  87.       Begin Menu menu_field 
  88.          Caption         =   "&Field"
  89.          Begin Menu menu_playsearch 
  90.             Caption         =   "&Play type..."
  91.          End
  92.          Begin Menu menu_scene_search 
  93.             Caption         =   "&Scene..."
  94.          End
  95.          Begin Menu menu_song 
  96.             Caption         =   "S&ong..."
  97.          End
  98.          Begin Menu menu_solil 
  99.             Caption         =   "So&liloquy..."
  100.          End
  101.          Begin Menu menu_imagery 
  102.             Caption         =   "Selected &Imagery..."
  103.          End
  104.       End
  105.    End
  106.    Begin Menu Menu_help 
  107.       Caption         =   "&Help"
  108.       Begin Menu help_classic 
  109.          Caption         =   "&Using The Oxford Shakespeare"
  110.       End
  111.       Begin Menu help_wordpro 
  112.          Caption         =   "Using the &Word processor"
  113.       End
  114.       Begin Menu blank3 
  115.          Caption         =   "-"
  116.       End
  117.       Begin Menu menu_about 
  118.          Caption         =   "&About..."
  119.       End
  120.    End
  121. End
  122.  
  123. Sub Animation1_AnimStop (Reason As Long)
  124. End Sub
  125.  
  126. Sub animation1_Click ()
  127. 'For a = 0 To 9
  128. ' If anim_mousex > zone_x1(a) - zone_offsetx And anim_mousex < zone_x2(a) - zone_offsetx Then
  129. ' If anim_mousey > zone_y1(a) - zone_offsety And anim_mousey < zone_y2(a) - zone_offsety Then
  130. ' hide_all
  131. ' process_zone (zone_command(a))
  132. 'End If
  133. 'End If
  134. 'Next a
  135.  
  136.  
  137. End Sub
  138.  
  139. Sub Animation1_MouseMove (Button As Integer, Shift As Integer, x As Single, Y As Single)
  140. 'x = x / screen.TwipsPerPixelX
  141. 'Y = Y / screen.TwipsPerPixelY
  142.  
  143.  
  144. 'anim_mousex = x
  145. 'anim_mousey = Y
  146. 'topbar(0).Caption = Str$(x + zoneoffsetx)
  147. 'topbar(1).Caption = Str$(y + zone_offsety)
  148.  
  149.   'command3d1.MousePointer = 4
  150. 'For a = 0 To 9
  151. ' If anim_mousex > zone_x1(a) - zone_offsetx And anim_mousex < zone_x2(a) - zone_offsetx Then
  152. ' If anim_mousey > zone_y1(a) - zone_offsety And anim_mousey < zone_y2(a) - zone_offsety Then
  153. 'MousePointer = 5
  154. 'topbar(1).Caption = Str$(y + zone_offsety)
  155. 'command3d1.MousePointer = 0
  156. 'End If
  157. 'End If
  158. 'Next a
  159.  
  160. End Sub
  161.  
  162. Sub Command2_Click (index As Integer)
  163.  
  164. End Sub
  165.  
  166. Sub Command3D1_Click (index As Integer)
  167.  
  168. End Sub
  169.  
  170. Sub Command4_Click ()
  171. 'animation1.Play = True
  172. 'animation1.Visible = True
  173. End Sub
  174.  
  175. Sub Command5_Click ()
  176. 'animation1.Play = False
  177. 'animation1.Visible = False
  178. End Sub
  179.  
  180. Sub Form_KeyDown (KeyCode As Integer, Shift As Integer)
  181. Const shiftkey = 1
  182. shiftdown = (Shift And shiftkey) > 0
  183.  
  184. End Sub
  185.  
  186. Sub Form_KeyUp (KeyCode As Integer, Shift As Integer)
  187.  
  188. shiftdown = (Shift And shiftkey) > 0
  189.  
  190.  
  191. End Sub
  192.  
  193. Sub Form_QueryUnload (Cancel As Integer, UnloadMode As Integer)
  194.     'hInstance% = GetWindowWord(hWnd, GWW_HINSTANCE)
  195.     'Ctl3dUnRegister (hInstance%)
  196. End Sub
  197.  
  198. Sub Form_Unload (Cancel As Integer)
  199. End
  200. End Sub
  201.  
  202. Sub help_classic_Click ()
  203.   hide_all
  204. Const HELP_KEY = &H101
  205.   
  206.  form3.CMDialog1.HelpFile = cd_drive + "\LIBRARY\EXE\shakehlp.HLP"
  207.   form3.CMDialog1.HelpContext = 3
  208.   form3.CMDialog1.HelpCommand = 3
  209.   form3.CMDialog1.Action = 6
  210.  
  211.  
  212. End Sub
  213.  
  214. Sub help_wordpro_Click ()
  215.   hide_all
  216.   'Specify the help file to be opened.
  217.   form3.CMDialog1.HelpFile = cd_drive + "\LIBRARY\EXE\shakword.HLP"
  218.   'When WinHelp.exe is executed, help for a specified
  219.   'keyword will be displayed.
  220.   form3.CMDialog1.HelpCommand = 3
  221.   form3.CMDialog1.HelpContext = 3
  222.   'Specify the keyword
  223.   'CMDialog1.HelpKey = "MouseDown"
  224.   'Execute WinHelp.exe
  225.   form3.CMDialog1.Action = 6
  226.  
  227.  
  228. End Sub
  229.  
  230. Sub intro ()
  231.  
  232. End Sub
  233.  
  234. Sub menu_about_Click ()
  235. 'about.Show
  236. form3.Show
  237. End Sub
  238.  
  239. Sub menu_book_Click ()
  240. hide_all
  241. view_text (shiftkey)
  242. End Sub
  243.  
  244. Sub menu_complex_search_Click ()
  245.     success% = SetWindowPos(complexsearch.hWnd, HWND_TOPMOST, 0, 0, 0, 0, TOPFLAGS)
  246.  
  247.  complexsearch.Show
  248. End Sub
  249.  
  250. Sub menu_copy_Click ()
  251. 'clipboard.SetText (cf_text) = notepad.Text2.SelText
  252. End Sub
  253.  
  254. Sub menu_exit_Click ()
  255. End
  256. End Sub
  257.  
  258. Sub menu_field_search_Click ()
  259.  fieldsearch.Show
  260. End Sub
  261.  
  262. Sub menu_how_Click ()
  263. form3.CMDialog1.Action = 6
  264. End Sub
  265.  
  266. Sub menu_imagery_Click ()
  267.     hide_all
  268.     ImagerySearch filenum%, linenum%
  269.      If filenum% > 0 Then
  270.     modalviewer.modal.Value = filenum%
  271.     Call view_text(0)
  272.     goto_line (linenum%)
  273.     End If
  274. End Sub
  275.  
  276. Sub menu_load_Click ()
  277.  
  278. On Error GoTo leave:
  279. form3.CMDialog1.InitDir = "c:\library"
  280. form3.CMDialog1.Filename = "CDAUTHOR.BMK"
  281. form3.CMDialog1.Filter = "*.bmk,Bookmarks"
  282. form3.CMDialog1.Action = 1
  283.  If form3.CMDialog1.CancelError <> True Then
  284. Open form3.CMDialog1.Filename For Input As #1
  285. bookmark.List1.Clear
  286. Do
  287. Line Input #1, a$
  288. Line Input #1, b$
  289.  bookmark.List1.AddItem (a$)
  290. bookmark.List1.ItemData(bookmark.List1.NewIndex) = Val(b$)
  291. Loop Until EOF(1)
  292. Close #1
  293. End If
  294. Exit Sub
  295. leave:
  296. Close #1
  297. Exit Sub
  298. End Sub
  299.  
  300. Sub menu_modal_Click ()
  301.  
  302. End Sub
  303.  
  304. Sub menu_paste_Click ()
  305. hide_all
  306. List.Show
  307. End Sub
  308.  
  309. Sub menu_playsearch_Click ()
  310.     'hInstance% = GetWindowWord(hWnd, GWW_HINSTANCE)
  311.     'Ctl3dRegister (hInstance%)
  312.     'Ctl3dAutoSubclass (hInstance%)
  313. 'field_search (0)
  314.     hide_all
  315.     ChDrive cd_drive
  316.     ChDir "\library\exe"
  317.     filenum% = playsearch()
  318.     If filenum% > 1 Then
  319.     modalviewer.modal.Value = filenum%
  320.     Call view_text(0)
  321.     End If
  322.  
  323. End Sub
  324.  
  325. Sub menu_pref_Click ()
  326. success% = SetWindowPos(preferences.hWnd, HWND_TOPMOST, 0, 0, 0, 0, TOPFLAGS)
  327. preferences.Show
  328. End Sub
  329.  
  330. Sub menu_print_bookmarks_Click ()
  331. hide_all
  332. form3.CMDialog1.Action = 5
  333. If form3.CMDialog1.CancelError <> True Then
  334. For a = 0 To bookmark.List1.ListCount - 1
  335. printer.Print bookmark.List1.List(a)
  336. 'Print #1, Mid$(Str$(bookmark.List1.ItemData(a)), 2, 10)
  337. Next a
  338. printer.EndDoc
  339. End If
  340. End Sub
  341.  
  342. Sub menu_print_Search_Click ()
  343. hide_all
  344. form3.CMDialog1.Action = 5
  345. If form3.CMDialog1.CancelError <> True Then
  346. For a = 0 To List.List1.ListCount - 1
  347. printer.Print List.List1.List(a)
  348. 'Print #1, Mid$(Str$(bookmark.List1.ItemData(a)), 2, 10)
  349. Next a
  350. printer.EndDoc
  351. End If
  352.  
  353. End Sub
  354.  
  355. Sub menu_print_setup_Click ()
  356. form3.CMDialog1.Action = 5
  357. End Sub
  358.  
  359. Sub menu_retracesteps_Click ()
  360. retrace.Show
  361. End Sub
  362.  
  363. Sub Menu_save_Click ()
  364. On Error Resume Next
  365. hide_all
  366. form3.CMDialog1.InitDir = "c:\library"
  367. form3.CMDialog1.Filename = "CDAUTHOR.BMK"
  368. form3.CMDialog1.Filter = "*.bmk,Bookmarks"
  369. form3.CMDialog1.Action = 2
  370. If form3.CMDialog1.CancelError <> True Then
  371. Open form3.CMDialog1.Filename For Output As #1
  372. For a = 0 To bookmark.List1.ListCount - 1
  373. Print #1, bookmark.List1.List(a)
  374. Print #1, Mid$(Str$(bookmark.List1.ItemData(a)), 2, 10)
  375. Next a
  376. Close
  377. End If
  378. End Sub
  379.  
  380. Sub menu_scene_search_Click ()
  381. hide_all
  382. 'field_search (1)
  383.     ChDrive cd_drive
  384.     ChDir "\library\exe"
  385.       filenum% = scenesearch()
  386.     If filenum% > 1 Then
  387. modalviewer.modal.Value = filenum%
  388.     Call view_text(0)
  389.     End If
  390.  
  391. End Sub
  392.  
  393. Sub menu_simple_search_Click ()
  394.  
  395. success% = SetWindowPos(simplesearch.hWnd, HWND_TOPMOST, 0, 0, 0, 0, TOPFLAGS)
  396. simplesearch.Show
  397. 'hide_all
  398. 'search_words(0) = InputBox$("Enter the WORD you wish to search for", "Simple Search", "")
  399. 'If search_words(0) <> "" Then Call free_text_search("WORD", 0, 0)
  400.  
  401. End Sub
  402.  
  403. Sub menu_solil_Click ()
  404. hide_all
  405. sol_search
  406. End Sub
  407.  
  408. Sub menu_song_Click ()
  409.  hide_all
  410.  song_search
  411.  
  412. End Sub
  413.  
  414. Sub menu_title_Click ()
  415.  
  416. success% = SetWindowPos(titlesearch.hWnd, HWND_TOPMOST, 0, 0, 0, 0, TOPFLAGS)
  417. titlesearch.Show
  418. 'hide_all
  419. 'Do
  420. 'search_words(0) = InputBox$("Enter ONE Word only                                            Enter Author's name to display Author(Biography) and works by that author.                                   Enter keyword from title to display all titles containing this word.                                             Click on OK to start the search", "Title or Author Search", "")
  421. 'If search_words(0) <> "" Then
  422. ' Call free_text_search("TITLE", 0, 0)
  423. ' Else
  424. ' successful = 1
  425. ' End If
  426.  
  427.  
  428. 'Loop Until successful = 1
  429. End Sub
  430.  
  431. Sub menu_word_Click ()
  432. wordp.Show
  433. End Sub
  434.  
  435. Sub process_zone (zone_c)
  436.  
  437. End Sub
  438.  
  439. Sub Timer1_Timer ()
  440. End Sub
  441.  
  442. Sub Timer2_Timer ()
  443. End Sub
  444.  
  445. Sub TopBar_Click (index As Integer)
  446.  
  447. End Sub
  448.  
  449.